package day05;
//外层控制行，内层控制列
public class Demo1 {
    public static void main(String[] args) {
/*
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + j * j + "\t");
            }
            System.out.println();
        }

        for (int i = 1; i <=5 ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print("*"+"\t");
            }
            System.out.println();
        }

        for (int i = 5; i > 0; i--) {
            for (int j = 1; j <= i; j++) {
                System.out.print("*"+"\t");
            }
            System.out.println();
        }
        

        int n = 5;
        for (int i =1; i <=n; i++) {
            for (int j = n-i; j >0; j--) {
                System.out.print(" ");
            }
            for (int j = 1; j <=2*i-1 ; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

 */


    }

}
